package com.bilibili.domain.exception;

import lombok.Data;

/**
 * projectName:com.bilibili.domain.exception
 *
 * @author 飞
 * @create by 2024/6/219:35
 * description:
 */
@Data
public class ConditionException extends RuntimeException{

    private static final long serialVersionUID = 1L;

    private String code;

    public ConditionException(String code,String name){
        super(name);
        this.code=code;
    }

    public ConditionException(String name){
        super(name);
        code="500";
    }
}
